<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<button onclick="funA()">弹出框</button>
<button onclick="funB()">询问框</button>
<button onclick="funC()">输入框</button>
</body>
</html>
<script>
    function funA() {
        window.alert('我是一个弹出框');
    }

    function funB() {
        let result = window.confirm('我是一个询问框');
        console.log(result);
    }

    function funC() {
        let result = window.prompt('我是一个输入框');
        console.log(result);
    }
</script>